package com.yaorange.service;

import com.github.pagehelper.PageInfo;
import com.yaorange.entity.Article;

import java.util.HashMap;


/**
 * @description:
 * @company: yaorange
 * @author: CorJ
 * @version: 1.0
 * @create: 2021-11-29 19:35
 */
public interface ArticleService {
    PageInfo<Article> getPage(Integer pageNum, Integer pageSize, HashMap hashMap);

    int addArticle(Article article);

    Article getArticle(Integer id);

    int update(Article article);

    boolean delete(Integer id);

    boolean findNum(Integer num,Integer id);
}
